package com.example.bookmall.service.impl;

import com.example.bookmall.entity.order.OrderItemVo;
import com.example.bookmall.mapper.OrderItemMapper;
import com.example.bookmall.service.OrderItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderItemServiceImpl implements OrderItemService {

    @Autowired
    private OrderItemMapper orderItemMapper;

    //  获取订单项列表 根据订单ID
    @Override
    public List<OrderItemVo> listOrderItemsByOrderId(String orderId) {


        List<OrderItemVo> orderItemVos =orderItemMapper.listOrderItemsByOrderId(orderId);

        return orderItemVos;
    }
}
